package com.tddx.activiti.business.${minpckage}.entity.${maxpckage};

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.annotations.Where;

import com.tddx.activiti.base.BaseEntity;

@Entity
@Table(name="${tableName}")
@Where(clause="VC_DEL='0'") 
public class ${entityName} extends BaseEntity{
	
	private static final long serialVersionUID = 1L;

<#list colList as col>
	<#if (col.pk.columnName=='ID')>
	<#elseif (col.dataType=='VARCHAR2')>
	@Column(name="${col.pk.columnName}", length=${col.dataLength})
	private String ${col.colPro};
	<#elseif (col.dataType=='DATE')>
	@DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")
	@Column(name="${col.pk.columnName}", length=${col.dataLength})
	private Date ${col.colPro};
	<#elseif (col.dataType=='NUMBER')>
	@Column(name="${col.pk.columnName}", length=${col.dataLength})
	private Integer ${col.colPro};
	</#if>

</#list>

<#list colList as col>
	<#if (col.pk.columnName=='ID')>
	<#elseif (col.dataType=='VARCHAR2')>
	public String ${col.colGetPro}() {
		return ${col.colPro};
	}
	
	public void ${col.colSetPro}(String ${col.colPro}) {
		this.${col.colPro} = ${col.colPro};
	}
	<#elseif (col.dataType=='DATE')>
	public Date ${col.colGetPro}() {
		return ${col.colPro};
	}
	
	public void ${col.colSetPro}(Date ${col.colPro}) {
		this.${col.colPro} = ${col.colPro};
	}
	<#elseif (col.dataType=='NUMBER')>
	public Integer ${col.colGetPro}() {
		return ${col.colPro};
	}
	
	public void ${col.colSetPro}(Integer ${col.colPro}) {
		this.${col.colPro} = ${col.colPro};
	}
	</#if>
	
</#list>
	
}
